package com.ruoyi.business.mapper;

import java.util.List;
import com.ruoyi.business.domain.SysUserSupplier;

/**
 * 用户和供应商关联Mapper接口
 * 
 * @author Alan Zhang
 * @date 2025-07-17
 */
public interface SysUserSupplierMapper 
{
    /**
     * 查询用户和供应商关联
     * 
     * @param userId 用户和供应商关联主键
     * @return 用户和供应商关联
     */
    public SysUserSupplier selectSysUserSupplierByUserId(Long userId);

    /**
     * 查询用户和供应商关联列表
     * 
     * @param sysUserSupplier 用户和供应商关联
     * @return 用户和供应商关联集合
     */
    public List<SysUserSupplier> selectSysUserSupplierList(SysUserSupplier sysUserSupplier);

    /**
     * 新增用户和供应商关联
     * 
     * @param sysUserSupplier 用户和供应商关联
     * @return 结果
     */
    public int insertSysUserSupplier(SysUserSupplier sysUserSupplier);

    /**
     * 修改用户和供应商关联
     * 
     * @param sysUserSupplier 用户和供应商关联
     * @return 结果
     */
    public int updateSysUserSupplier(SysUserSupplier sysUserSupplier);

    /**
     * 删除用户和供应商关联
     * 
     * @param userId 用户和供应商关联主键
     * @return 结果
     */
    public int deleteSysUserSupplierByUserId(Long userId);

    /**
     * 批量删除用户和供应商关联
     * 
     * @param userIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysUserSupplierByUserIds(String[] userIds);
}
